package com.lwq.project.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lwq.project.dao.custom.CustomRole2muneMapper;
import com.lwq.project.model.Role2mune;
import com.lwq.project.service.Role2muneService;

@Service
public class Role2muneServiceImpl implements Role2muneService {
	
	@Autowired
	private CustomRole2muneMapper customRole2muneMapper;
	public List<Map<String, Object>> getMune(String rId) {
		return customRole2muneMapper.getMuneFirst(rId);
	}
	public int addMRoleMune(Role2mune rm) {
		return customRole2muneMapper.insertSelective(rm);
	}
	public int checkSecondMune(Map<String, Object> map) {
		return customRole2muneMapper.checkSecondMune(map);
	}
	public List<Map<String, Object>> getSecondMune(Map<String, Object> map) {
		return customRole2muneMapper.getMuneSecond(map);
	}
	public int delRoleMune(Map<String, Object> map) {
		return customRole2muneMapper.delByRidMid(map);
	}
}
